#ifndef EMOTIONWINDOW_H
#define EMOTIONWINDOW_H

#include <QWidget>
#include "myemotionwidget.h"


class EmotionWindow : public QWidget
{
    Q_OBJECT
public:
    explicit EmotionWindow(QWidget *parent = nullptr);
    ~EmotionWindow();
    void showSmallEmotion(QPoint point);
    void showNormalEmotion(QPoint point);
private:

    void initWindow();
    void initEmotion();    
    MyEmotionWidget *m_normalEmotionWidget;
    QLabel *m_lableTitle;
    //bool nativeEvent(const QByteArray &eventType, void *message, long *result);
    void showEvent(QShowEvent *event);
    void focusOutEvent(QFocusEvent *event);
signals:
    void signalEmotionWindowHide();
    void signalEmotionItemClicked(QString);
public slots:
    void onEmotionItemClicked(QString filename);
};

#endif // EMOTIONWINDOW_H
